don't back up a char from the end iterator, fixes #61859 ("can't put
authorHavoc Pennington <hp@redhat.com>
Mon, 22 Oct 2001 23:35:03 +0000 (23:35 +0000)
committerHavoc Pennington <hp@src.gnome.org>
Mon, 22 Oct 2001 23:35:03 +0000 (23:35 +0000)
commit0d5635b36613c0e5eca772e223001d1858433c28
tree7e1ecb35c78379de14107396ff045dab6ceeddf2
parent60ef9dd421b3050581f6e540541d1cc5a5e0bef3
don't back up a char from the end iterator, fixes #61859 ("can't put

2001-10-22  Havoc Pennington  <hp@redhat.com>

* gtk/gtktextbuffer.c (gtk_text_buffer_place_cursor): don't back
up a char from the end iterator, fixes #61859 ("can't put cursor
at the end of the buffer")

* gtk/gtktextiter.c (gtk_text_iter_forward_to_line_end): fix this
to work with delimiters other than newline.

* tests/testtextbuffer.c: add some tests for get_chars_in_line,
get_bytes_in_line

* gtk/gtktextiter.c (gtk_text_iter_get_chars_in_line): fix for the
last line, since the newline is no longer counted.
(gtk_text_iter_get_bytes_in_line): ditto
ChangeLog
ChangeLog.pre-2-0
ChangeLog.pre-2-10
ChangeLog.pre-2-2
ChangeLog.pre-2-4
ChangeLog.pre-2-6
ChangeLog.pre-2-8
gtk/gtktextbuffer.c
gtk/gtktextiter.c
tests/testtextbuffer.c